package com.yvon.maple.service.doc.mapper;

import com.yvon.boot.mybatis.BaseMapper;
import com.yvon.maple.service.doc.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    /**
     * 查询侧边栏
     *
     * @param categoryId 类别编号
     * @return : List<Article>
     * @author : Yvon / 2020-09-08
     */
    List<Article> getSidebar(@Param("categoryId") Long categoryId);

}
